Skip to content

Conversation

@halspang
Copy link
Member

This change adds a DefaultVersion to the DurableTaskClient builder options. When no other version is set, which is currently always the case, this value is used as the version of any new orchestration started. The value is then passed down to workers via the TaskOrchestrationContext.

This allows users to specify a version during their app setup and then key off of the version during orchestration. Using conditional logic, changes can then be made to the orchestration without harming in-progress orchestrations.

@halspang halspang force-pushed the halspang/client_versioning branch from 0f8256d to 0cfd1d2 Compare March 11, 2025 20:31
Copy link
Member

@cgillum cgillum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments.

This change adds a DefaultVersion to the DurableTaskClient builder
options. When no other version is set, which is currently always the
case, this value is used as the version of any new orchestration
started. The value is then passed down to workers via the
TaskOrchestrationContext.

This allows users to specify a version during their app setup and
then key off of the version during orchestration. Using conditional
logic, changes can then be made to the orchestration without harming
in-progress orchestrations.

Signed-off-by: halspang <[email protected]>
@halspang halspang force-pushed the halspang/client_versioning branch from 0cfd1d2 to f4d80f2 Compare March 12, 2025 22:45
@halspang halspang requested a review from cgillum March 12, 2025 22:48
@cgillum cgillum merged commit 8278676 into microsoft:main Mar 12, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants